<template>
  <div>
        <input type="text" v-model="username" />
        <input type="text" v-model="username1" />
        <button @click="submit">提交</button>
  </div>
</template>

<script>
  export default{
    name:"test",
    data:()=>{
      return {
        username:"",
        username1:""
      }
    },
    methods:{
      submit:function(){
        console.log(this.username);
        console.log(this.username1);
        // console.log(this.username.equals(this.username1));
         console.log(this.username == this.username1);
      }
    }
  }
</script>

<style>
</style>
